<?php

namespace App\Http\Controllers\Wap;

use App\Nav;
use App\Post;
use App\Repositories\DistributeRepository;
use App\Service\Adseat;
use App\Setting;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //
    private $postManager;
    private $settingManager;
    private $request;
    public function __construct (Request $request)
    {
        $this->postManager = new Post();
        $this->settingManager = new Setting();
        $this->request = $request;
    }
    public function index(){
        // $m = new DistributeRepository();
       // if(Setting::getConfig('distributeWay','分销设置')==1){
       //     $m->account(32,DistributeRepository::ACT_DISTRIBUTE,['from'=>44]);
       // }
        die(1);
        //return view('web.index');
    }
    public function about(){
        $model = new \App\Http\Controllers\Admin\Scene\Service\SceneIntroduce();
        $info = $model->get();
        return view('web.index', ['info' => $info]);
    }
}
